package com.matrix.java.chap_05;

/*
    求满足 n²>12000的n的最小值
 */
public class Ex5_12 {
    public static void main(String[] args) {
        int square = 0;
        double num = 0;
        while (square < 12000) {
            num++;
            square = (int) Math.pow(num, 2);
        }
        System.out.println((int) num);
    }
}
